package com.xhj.myframe.myspring.zhouyu;
/**
 * -
 *
 * @author 见见 pure_xhj@163.com @Date 2021-08-28 @Time 18:35
 */
public class MyApplication {
  public static void main(String[] args) {
    ZhouyuApplicationContext zhouyuApplicationContext =
        new ZhouyuApplicationContext(AppConfig.class);
    UserService userService = (UserService) zhouyuApplicationContext.getBean("userService");
    UserService userService2 = (UserService) zhouyuApplicationContext.getBean("userService");
    UserService userService3 = (UserService) zhouyuApplicationContext.getBean("userService");
    userService.test();
    System.out.println(userService);
    System.out.println(userService2);
    System.out.println(userService3);
  }
}
